package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.AdviceDO;
import com.pipi.sso.dao.query.AdviceQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Advice.
 */
public interface AdviceManager {
    /**
     * query count by query condition.
     */
    int countByQuery(AdviceQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AdviceQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AdviceDO record);

    /**
     * insert selective.
     */
    long insertSelective(AdviceDO record);

    /**
     * select by query condition.
     */
    List<AdviceDO> selectByQuery(AdviceQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<AdviceDO> selectByQueryWithPage(AdviceQuery query);

    /**
     * select by primary key.
     */
    AdviceDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( AdviceDO record,  AdviceQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(AdviceDO record, AdviceQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AdviceDO record);
}